CyberStore Documentation
Parsing the XML Message

In order to receive the information in a way that your application can use, parse out each element from the response by selecting the appropriate node.

An evaluation of the EventResponse determines success or failure. A response number of “000” indicates success.

See the example below:

Example Parsing XML Message
Copy Code
If WEBSERVICERESPONSE.loadXML(SoapRequest.responseXml.xml) Then       
            Dim node = WEBSERVICERESPONSE.documentElement.selectSingleNode(“//EventResponse/Number”)
             
            If node.text = “000” Then
                YOUHAVEACCESS = True
            Else
                YOUHAVEACCESS = False
                Session(“SessionToken”) = “”
            End If
End If

Other Number and Message values in the EventResponse can be used to program specific error handling situations.

 

See Also

CyberStore Connect Response Number Codes